package com.online.findagentserver.slave0;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.sql.Timestamp;

/**
 * @Author: liuqing
 * @Despriction:
 * @Date:Created in 2018/5/9 11:45
 * @Modify By:
 */
@Mapper
public interface Message0Mapper {

    /**
     * 结束会话时间
     *
     * @param endTime
     * @param id
     * @return
     */
    @Update("UPDATE ols_message SET end_time = #{endTime} where id = #{id}")
    int updateMsgEndTime(@Param("endTime") Timestamp endTime, @Param("id") int id);

}
